import http from "../utils/request"

const listWeiYan = (data) => {
    return http.request({
        url: '/weiYan/getWeiYanPage',
        method: 'get',
        data: data
    })
}

// /weiYan/deleteWeiYan
const deleteWeiYan = (data) => {
    return http.request({
        url: '/weiYan/deleteWeiYan',
        method: 'get',
        data: data
    })
}

///weiYan/saveNews post
const saveNews = (data) => {
    return http.request({
        url: '/weiYan/saveNews',
        method: 'get',
        data: data
    })
}

///weiYan/listNews post
const listNews = (data) => {
    return http.request({
        url: '/weiYan/listNews',
        method: 'get',
        data: data
    })
}

export {
    listWeiYan,
    deleteWeiYan,
    saveNews,
    listNews
}
